package com.bite.config.demo.controller;

import cn.hutool.captcha.CaptchaUtil;
import cn.hutool.captcha.LineCaptcha;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CaptchaController {
    @RequestMapping("/getCaptcha")
    public void getCaptcha() {
        //定义图形验证码的⻓和宽
        LineCaptcha lineCaptcha = CaptchaUtil.createLineCaptcha(200,
                100,4,150);
    }
}
